<%-- 
    Document   : message
    Created on : Feb 8, 2012, 11:45:35 AM
    Author     : PhucAn
--%>


<%@page import="model.util.SharingUtil"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>       
    </head>
    <body>
        <%
            Object hMessage = session.getAttribute(SharingUtil.VAR_S_ADMIN_MESSAGE);
            boolean hasMessage = true;
            if (hMessage != null) {
                if (hMessage.toString().equals("")) {
                    hasMessage = false;
                }
            } else {
                hasMessage = false;
            }
        %>

        <div id="message-box" style="display:<%=hasMessage ? "block" : "none"%>">
            <%= hasMessage ? hMessage.toString() : ""%>
        </div>
        <%
            session.setAttribute(SharingUtil.VAR_S_ADMIN_MESSAGE, "");
        %>
    </body>
</html>
